
package Exception;

/**
 * this class handles all database exceptions
 * @author tejinder
 */
public class KwickKioskDBException extends SystemException {

     private String serviceName;
     private String shortMessage;

     /**
     * Constructs an KwickKioskDBException object with the specified parameters.
     * @param functionName name of the businessProcess
     * @param shortMessage developer friendly message
     */
    public KwickKioskDBException(String functionName, String shortMessage) {
        super(functionName, shortMessage);
        this.serviceName = functionName;
        this.shortMessage = shortMessage;
    }

    /**
     * @return the serviceName
     */
    public String getServiceName() {
        return serviceName;
    }

    /**
     * @param serviceName the serviceName to set
     */
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    /**
     * @return the shortMessage
     */
    public String getShortMessage() {
        return shortMessage;
    }

    /**
     * @param shortMessage the shortMessage to set
     */
    public void setShortMessage(String shortMessage) {
        this.shortMessage = shortMessage;
    }

}
